package com.bootdo.lgs.main.controller;

import com.bootdo.common.controller.BaseController;
import com.bootdo.lgs.main.service.MainService;
import com.bootdo.system.domain.UserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MainController extends BaseController {

    @Autowired
    private MainService mainService;

    @GetMapping("/lgs/main/getEvaluate")
    @ResponseBody
    List getEvaluate() {
        UserDO loginUser = getUser();
        return mainService.getEvaluate(loginUser);
    }

}
